class Animal1:
    def say(self):
        print("animal1")

class Animal2:
    def say(self):
        print("animal2")

class Animal3:
    def say(self):
        print("animal3")

class Dog(Animal1,Animal2,Animal3):
    """
        super()可以访问综合父类
    """
    def say(self,name):
        # 父类计算完覆盖后得到的是Animal1的
        super().say()
        print("请呼唤我的名字%s"%name)

# my_dog = Dog()
# #animal1
# #请呼唤我的名字king
# my_dog.say("king")

#************************
# 访问指定父类
class Cat(Animal1,Animal2,Animal3):
    def hello(self):
        """
        	self是Cat的实例对象，跳过Animal2，指向更左边的Animal3类
        """
        super(Animal2,self).say()

my_cat = Cat()
#"animal3"
my_cat.hello()